from image import BaseImage

#from algorithms.algorithm import Algorithm
from colorenhancement import ColorEnhancement
from detailenhancement import DetailEnhancement



print("hej")
im = BaseImage()
im2 = BaseImage()
im3 = BaseImage()
im.load("images/old_man.jpg")
im2.copy(im)
im2.rotate(90)
im2.show()

# COLOR ENHANCEMENT
#algo = ColorEnhancement()
#algo.load_pixels(im.get_pixels())
#algo.perform_action()
#pix = algo.get_pixels()
#im.update_pixels(pix)
#im.rotate(90)
#im.show()

# DETAIL ENHANCEMENT
im3.copy(im2)
algo = DetailEnhancement()
algo.load_pixels(im2.get_pixels())
algo.perform_action()
pix = algo.get_pixels()
im3.update_pixels(pix)
im3.show()


